#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include<QTcpSocket>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    void InitClientWidget();
private slots:
    void OnReadyRead();
    void on_connect_clicked();

    void on_connectbt_clicked();

    void on_sendbt_clicked();

private:
    Ui::Widget *ui;
    QTcpSocket *m_pSocket;
};

#endif // WIDGET_H
